#!/bin/bash

# 这个是为了快速重启编写的脚本

echo "start processcache..."

echo "stop processcache..."
ps -ef | grep processcache
echo $?

docker stop processcache

echo "rm processcache..."
docker rm processcache

echo "rmi processcache..."
docker rmi processcache

echo "build processcache..."
docker build -t "processcache" .

echo "run processcache..."
docker run -d -p 9999:9999 -e Server_Bind=0.0.0.0:9999 -e Log_Level=0 -e Redis_Net_Type=tcp -e Redis_Host=192.168.1.235 -e Redis_Port=6379 -e Redis_Password=root -e Redis_DbIndex=0 -e Redis_MaxIdle=2000 -e Redis_MaxActive=3000 -e Redis_IdleTimeout=300 --name processcache processcache




echo "end!"